package sm.codec.type;

public enum Logical {
	TRUE("TRUE"), FALSE("FALSE"), UNKNOWN("UNKNOWN");

	private String name;

	public String getName() {
		return name;
	}

	private Logical(String name) {
		this.name = name;
	}

	public static Logical getLogical(String name) {
		if (TRUE.name.equals(name)) {
			return TRUE;
		} else if (FALSE.name.equals(name)) {
			return FALSE;
		} else if (UNKNOWN.name.equals(name)) {
			return UNKNOWN;
		} else {
			return null;
		}
	}
}
